<?php

session_start ();
$card;
if (isset ( $_SESSION ['card'] )) {
   $card = $_SESSION ['card'];
} else {
   $card = array ();
}
$sum=0;
foreach ( $card as $sp ) {
   $sum+=$sp['count']*$sp['price'];
}
out:
echo $sum." VNĐ";
?>